QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Indexed Triangle Structure

The QADrawTriMeshGouraud and QADrawTriMeshTexture functions draw triangle meshes defined by an array of indexed triangles. An indexed triangle is represented by a data structure of type TQAIndexedTriangle that defines three vertices and a set of triangle flags.

typedef struct TQAIndexedTriangle {
    unsigned long                       triangleFlags;
    unsigned long                       vertices[3];
} TQAIndexedTriangle;
triangleFlags
A set of triangle flags. See "Triangle Flags Masks" for a complete description of the available flags.
vertices
An array of three indices into the array of vertices submitted by the most recent call to QASubmitVerticesGouraud or QASubmitVerticesTexture .

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |